Add test result publishing to GitHub Actions workflows#26
Merged
Conversation
Co-authored-by: IvanMurzak <9135028+IvanMurzak@users.noreply.github.com>
Contributor
Test Results0 tests 0 ✅ 0s ⏱️ For more details on these parsing errors, see this check. Results for commit fca9656. |
Contributor
Test Results 2 files 2 suites 1m 18s ⏱️ Results for commit b9930ee. ♻️ This comment has been updated with latest results. |
Copilot
AI
changed the title
[WIP] Add GitHub Action tests output for readable results
Add test result publishing to GitHub Actions workflows
Nov 9, 2025
Owner
|
@copilot The job fails with this output. |
…ault logger Co-authored-by: IvanMurzak <9135028+IvanMurzak@users.noreply.github.com>
Contributor
Author
Fixed in b9930ee. Changed the test logger to use |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plan for Implementing GitHub Action Test Output
Update
.github/workflows/pull_request.ymlto:EnricoMi/publish-unit-test-result-action@v2step to publish test resultsUpdate
.github/workflows/release.ymlto:EnricoMi/publish-unit-test-result-action@v2step to publish test resultsFix TRX file size issue
Summary of Changes
Both workflow files have been updated with:
Permissions: Added necessary permissions for the action:
checks: write- Required to create check runs with test resultspull-requests: write- Required to comment on PRs with test resultscontents: read/write- For repository accessTest Command: Modified to generate TRX test result files:
--logger "trx;LogFileName=test-results.trx"to--logger trxPublish Test Results Step: Added new step using
EnricoMi/publish-unit-test-result-action@v2:if: always())**/TestResults/*.trxpatternlarge_files: trueto enable XML_PARSE_HUGE for handling large TRX filesFix for TRX File Size Issue
The initial implementation was generating a single combined TRX file that exceeded 32MB and 450,000 lines when running tests for multiple target frameworks. This caused the error:
The fix:
LogFileNameparameter to allow dotnet test to create separate TRX files per target frameworklarge_files: trueparameter to the publish action to enable XML_PARSE_HUGE parsing optionOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.